<div class="post">
		<div class="post_title">
			<h1>編輯分類</h1>
		</div>
		<div class="post_body">
			<p>編輯一個相冊分類.</p>
			<?php $this->load->view('admin/partials/notices') ?>
				<table width="100%">
				<tr>
					 <td colspan="2">
					 	<fieldset id="main">
					 		<legend>基本設置</legend>
			 				<form action="<?php echo site_url('admin/galleries/edit_category/'. $info->id);?>" method="post">					 				
					 		<table>
					 			<tr>
					 				<td width="200px">分類名字</td>

					 				<td><input type="text" name="name" value="<?php echo $info->name?>" id="name" size="30" class="styled"  /></td>
					 			</tr>
					 			<tr>
					 				<td width="200px">分類描述</td>
					 				<td><input type="text" name="description" value="<?php echo $info->description?>" id="description" size="50" class="styled"  /></td>
					 			</tr>
					 			<tr>
					 				<td width="200px">父分類</td>

					 				<td><select name="parent_id">
										<option value="0">-----------</option>
										<?php foreach($categories as $key => $category):?>
										<option value="<?php echo $category->id?>" <?php if($category->id == $info->parent_id):?>selected="selected"<?php endif;?>><?php echo $category->name?></option>
										<?php endforeach;?>
										</select></td>
					 			</tr>
					 			<tr>

					 				<td width="200px">分類狀態</td>
					 				<td><select name="status">
										<option value="active" <?php if("active" == $info->status):?>selected="selected"<?php endif;?>>開啓</option>
										<option value="inactive" <?php if("inactive" == $info->status):?>selected="selected"<?php endif;?>>關閉</option>
										</select> <a title="分類狀態|分類有兩種狀態:<br /><br />
										<strong>開啓</strong> - 在網站顯示<br />
										<strong>關閉</strong> - 在網站不顯示" class="tip">[?]</a></td>
					 			</tr>
					 			<tr>
					 				<td width="200px">分類位置</td>

					 				<td><input type="text" name="position" value="<?php echo $info->position?>" id="position" size="6" class="styled"  />&nbsp;<a title="位置|在分類中的位置" class="tip">[?]</a></td>
					 			</tr>
					 		</table>
					 	</fieldset>
					 </td>
				</tr>
				<tr>
					 <td colspan="2">&nbsp;</td>

				</tr>
				<tr>
					<td colspan="2">
						<input type="hidden" name="id" value="<?php echo $info->id;?>"/>
						<input type="submit" name="submit" value="更新 &rsaquo;&rsaquo;" class="styled" />
						</form>					</td>
				</tr>
				</table>
		</div>

</div>      